public class ObjectMapperDemo {

    public static void main(String[] args){
        String jsonString="{\":\"XiaoMi\",\"model\":\"Yu7\",\"city\"\"Guangzhou\",\"year\":2025}";
        ObjectMapper mapper = new ObjectMapper();
        try{
            Car myCar = mapper.readValue(jsonString,Car.class);
            System.out.println(myCar.toString());
        }catch(JsonProcessingException e){
            throw new RuntimeException(e);
        }
    }
//    public class Car {
//        public void setBrand(String brand){
//            this.brand=brand;
//        }
//    }
//    public class Car {
//
//    }
//    public class Car {
//
//    }
//    public class Car {
//
//    }
//    public class Car {
//
//    }
}
